<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/admin/include/init_admin.jsp" %>
<%@ page import="com.welfare.admin.service.*" %>
<%
	


	
	HashList code507	= CommonUtil.getCodeList("507");	//교육시간

	
	String service_id		= StringUtil.nvl(request.getParameter("service_id"));



	HashMap infos = new HashMap();
	infos.put("service_id",	service_id);


	ServiceDAO dao 		= new ServiceDAO();
	HashList list 		= dao.selectServiceInfo(infos);		
	HashList docuList	= dao.selectServiceDocuList(infos);



%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title><%= list.get("service_name", 0) %> - <%= SYSTEM_NAME %></title>
	<%@ include file="/admin/include/cssnjs.jsp"  %>

	<script type="text/javascript">
	
	
	$(document).ready(function() {
		
	});


	</script>
</head>
<body>
<div id="wrap">
		<div id="popup">
			<div class="menu_title">
				<h1><%= list.get("service_name", 0) %></h1>
				<div class="r mt2">
			<%	if (isAdmin) { %>
					<a href="./serviceUpdate.jsp?service_id=<%=service_id %>" ><img src="../images/btn_update.gif"/></a>
			<%	} %>
					<input type="image" class="button" src="../images/btn_close.gif" onclick="self.close()"/>
				</div>
			</div>
			<div class="clear line_01"></div>




			<table cellpadding="0" cellspacing="0" class="table_01 mt5">
			<colgroup>
				<col width="100px"/>
				<col width="300px"/>
				<col width="100px"/>
				<col/>
			</colgroup>
			<tbody>
				<tr>
					<th><p>사업구분</p></th>
					<td>
						<%= list.get("service_gubn_name", 0) %>
					</td>
					<th><p>서비스유형</p></th>
					<td class="brx">
						<%= list.get("service_type_name", 0) %>
					</td>
				</tr>
				<tr>
					<th><p>공급주체</p></th>
					<td>
						<%= list.get("owner_name", 0) %>
					</td>
					<th><p>담당부서</p></th>
					<td class="brx">
						<%= list.get("dept_name", 0) %>
					</td>
				</tr>
				<tr>
					<th><p>담당자</p></th>
					<td>
						<%= list.get("dept_tel", 0) %>
					</td>
					<th><p>연락처</p></th>
					<td class="brx">
						<%= list.get("tel_no", 0) %>
					</td>
				</tr>
				<tr>
					<th><p>주소</p></th>
					<td>
						<%= list.get("address", 0) %>
					</td>
					<th><p>홈페이지</p></th>
					<td class="brx">
					<%	if (list.get("homepage", 0).indexOf("http") == 0) { %>
						<a href="<%= list.get("homepage", 0) %>" target="_blank"><%= list.get("homepage", 0) %></a>
					<%	} else { %>
						<a href="http://<%= list.get("homepage", 0) %>" target="_blank"><%= list.get("homepage", 0) %></a>
					<%	} %>
					</td>
				</tr>
				<tr>
					<th><p>사업개요</p></th>
					<td colspan="3" class="brx">
						<%= list.getToBr("summary", 0) %>
					</td>
				</tr>
				<tr>
					<th><p>선정기준</p></th>
					<td colspan="3" class="brx">
						<%= list.getToBr("selection", 0) %>
					</td>
				</tr>
				<tr>
					<th><p>서비스내용</p></th>
					<td colspan="3" class="brx auto">
						<%= list.get("service_info", 0).replaceAll("src=\"../images", "src=\"/images") %>
					</td>
				</tr>
				<tr>
					<th><p>금액</p></th>
					<td colspan="3" class="brx">
						<%= list.getToBr("price_info", 0) %>
					</td>
				</tr>
				<tr>
					<th><p>구비서류</p></th>
					<td colspan="3" class="brx">
						<%= list.getToBr("document", 0) %>
			<%	for (int i = 0; i < docuList.size(); i++) { %>
			<%		if ("".equals(docuList.get("file_id",i))) { %>
						<span class="file_download"><%= docuList.get("docu_name",i) %></span><%= i<docuList.size()-1?",":"" %>
			<%		} else { %>
						<span class="file_download">
							<a href="../../common/fileDownload.jsp?file_id=<%= docuList.get("file_id", i) %>&file_name=<%=docuList.getEncode("docu_name",i) %>">
							<img src="../../images/common/<%= StringUtil.getFileExtIcon(docuList.get("file_ext",i)) %>"/><%= docuList.get("docu_name",i) %></a><%= i<docuList.size()-1?",":"" %>
						</span>
			<%		} %>	
			<%	} %>
					</td>
				</tr>
				<tr>
					<th><p>예비1</p></th>
					<td colspan="3" class="brx auto">
						<%= list.get("extra_1", 0) %>
					</td>
				</tr>
				<tr>
					<th><p>예비2</p></th>
					<td colspan="3" class="brx auto">
						<%= list.get("extra_2", 0) %>
					</td>
				</tr>
				<tr>
					<th><p>생애주기</p></th>
					<td><%= list.get("srch_age", 0) %></td>
					<th><p>대상특성</p></th>
					<td class="brx"><%= list.get("srch_target", 0) %></td>
				</tr>
				<tr>
					<th><p>가구유형</p></th>
					<td><%= list.get("srch_family", 0) %></td>
					<th><p>소득구분</p></th>
					<td class="brx"><%= list.get("srch_income", 0) %></td>
				</tr>
				<tr>
					<th><p>지원형태</p></th>
					<td ><%= list.get("srch_support", 0) %></td>
					<th><p>욕구</p></th>
					<td  class="brx"><%= list.get("srch_needs", 0) %></td>
				</tr>
		<%	if ("02".equals(list.get("service_gubn",0))) { %>
				<tr>
					<th><p>교육시간</p></th>
					<td>
						[<%= list.get("prg_period_name", 0) %>] <%= CommonUtil.makeCheckBoxByName(code507, list.get("srch_prg_time", 0)) %>
					</td>
					<th><p>교육요일</p></th>
					<td class="brx">
						<%= list.get("srch_prg_weekday", 0) %>
					</td>
				</tr>
		<%	} %>
				<tr>
					<th><p>공개여부</p></th>
					<td>
						<%= "Y".equals(list.get("open_yn", 0))?"공개":"비공개" %>
					</td>
					<th><p>최종수정일</p></th>
					<td class="brx">
						<%= list.get("mod_date", 0) %> <%= list.get("mod_user",0) %>
					</td>
				</tr>
			</tbody>
			</table>
			
		</div>
		
</div>



</body>
</html>
